package com.mt.order.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
import com.mt.order.entity.OrderEntity;

@FeignClient(name = "order")
public interface OrderFeign {
    @PostMapping("/order/doInsertList")
    ServiceResult<List<OrderEntity>> doInsertList(List<OrderEntity> orderEntityList);

    @GetMapping("/order/findInfo")
    ServiceResult<OrderEntity> findInfo(Map<String, Object> params);

    @GetMapping("/order/findList")
    ServiceResult<List<OrderEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo);

    @PostMapping("/order/doUpdate")
    void doUpdate(OrderEntity orderEntity);
}
